
# def func(n):
#     return n ** 2
# print(func)
#
#
# ret = func(10)
# print(ret)

# 匿名函数又被称为lambda表达式
# 语法: lambda 参数: 返回值
# fn = lambda n : n ** 2
# # print(fn)
# ret = fn(10)
# print(ret)


# 计算a+b的结果
fn = lambda a, b: (a + b, a - b)
print(fn(10, 20))

